home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
vol16n13.zip
/
OPENTR.ZIP
/
OT_SRC.ZIP
/
PAGEDLG.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-26
|
1KB
|
60 lines
// PageDlg.cpp : implementation file
//
// This module implements the "Select Page" dialog.
// OpenTrap Version 1.00 by Gregory A. Wolking
// Copyright ⌐ 1997 Ziff-Davis Publishing
// First published in PC Magazine, US Edition, July 1997.
#include "stdafx.h"
#include "OpenTrap.h"
#include "PageDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPageDlg dialog
CPageDlg::CPageDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPageDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPageDlg)
m_intPageNum = 1;
m_intEndPage = 99;
//}}AFX_DATA_INIT
}
void CPageDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPageDlg)
DDX_Control(pDX, IDC_lblPageRange, m_lblPageRange);
DDX_Text(pDX, IDC_txtPageNum, m_intPageNum);
DDV_MinMaxUInt(pDX, m_intPageNum, 1, m_intEndPage);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPageDlg, CDialog)
//{{AFX_MSG_MAP(CPageDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPageDlg message handlers
BOOL CPageDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CString txt;
txt.Format("Enter a page number from 1 to %u:", m_intEndPage);
m_lblPageRange.SetWindowText(txt);
return TRUE;
}